import request from "@/axios";

export class roleApi {
  // 角色新增/编辑
  static edit = (params) =>
    request.postAndLoadData("/adminapi/role/store", params);
  // 角色列表
  static page = (params) =>
    request.getAndLoadData("/adminapi/role/list", params);
  // 全部角色
  static all = (params) => request.getAndLoadData("/adminapi/role/all", params);
  // 角色菜单
  static authMenu = (params) =>
    request.getAndLoadData("/adminapi/role/auth", params);
  // 角色菜单编辑，新增
  static authMenuEdit = (params) =>
    request.postAndLoadData("/adminapi/role/auth", params);
  // 角色删除
  static delete = (params) =>
    request.delAndLoadData("/adminapi/role/delete", params);
}
